export function findIndexInOptionItemByValue(options, value) {
    var selectedIndex = -1;
    options.forEach(function (item, index) {
        if (item.value === value) {
            selectedIndex = index;                           
        }
    });
    return selectedIndex;
}

export function findIndexInOptionItemByKey(options, key, value) {
    var selectedIndex = -1;
    options.forEach(function (item, index) {
        if (item[key] === value) {
            selectedIndex = index;                           
        }
    });
    return selectedIndex;
}
